]> dgit.raspbian.org Git - linux-4.9.git/commit
dwc_otg: fix split transaction data toggle handling around dequeues
authorP33M <p33m@github.com>
Tue, 2 May 2017 15:31:15 +0000 (16:31 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 3 May 2017 14:14:36 +0000 (15:14 +0100)
commite096c44303461e2df4b9f6973e1ff66e13709201
treef845b9e194f2378b5394e6ac0290b9a92b2e1fbd
parent525571c4df4066a61166b4b44cf5d757c2c53f5e
dwc_otg: fix split transaction data toggle handling around dequeues

See https://github.com/raspberrypi/linux/issues/1709

Fix several issues regarding endpoint state when URBs are dequeued
- If the HCD is disconnected, flush FIQ-enabled channels properly
- Save the data toggle state for bulk endpoints if the last transfer
  from an endpoint where URBs were dequeued returned a data packet
- Reset hc->start_pkt_count properly in assign_and_init_hc()
drivers/usb/host/dwc_otg/dwc_otg_hcd.c
drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c